<?php

namespace addons\Flow\common\enums;
use common\enums\BaseEnum;
/**
 * 状态枚举
 *
 * Class StatusEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class WorkflowEnum extends BaseEnum
{
    const APPLY = 'apply';
    const AUDIT = 'audit';
    const APPROVE = 'approve';
    const RESULT = 'result';
    const AGREE = 'agree';
    const REFUSED = 'refused';

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::APPLY => '申请',
            self::AUDIT => '审核',
            self::APPROVE => '审批',
            self::RESULT => '终审',
            self::AGREE => '通过',
            self::REFUSED => '拒绝',
        ];
    }
}